0x8004DDE - Increments a loaded variable that is 0 when an icon update is needed

0x8004DE8 - Increments a loaded variable that designates which stage of a graphic to use; this should always be 0 for item icons

At above PC r4 will hold ID of icon being drawn; however, the above increment must be completed or other bad crap will happen

0x8004DC6 - Loads variable incremented by previous PC, compares to 0 just after

At above PC r4 will hold ID of icon being drawn

Hack to fix:

@.org				0x08004DC2
bx	r0			@00 47

@.org				0x08004DD8
.long				0x080CB5A5
@-------------------------------@A1 B5 0C 08

@.org				0x080CB5A4
.thumb
ldr	r0,			Icon_Flag_Base
lsl	r1,	r4,	#0x2	@
cmp	r4,	#0x80		@
bge				Custom_Icon
ldr	r5,			Normal_Return
bx	r5			@
@-------------------------------@Custom_Icon
Custom_Icon:
add	r5,	r1,	r0	@
ldr	r0,			Hack_Return
bx	r0			@

.align				2
@-------------------------------@Icon_Flag_Base
Icon_Flag_Base:
.long				0x02026A50
@-------------------------------@Normal_Return
Normal_Return:
.long				0x08004DC5
@-------------------------------@Hack_Return
Hack_Return:
.long				0x08004DDD
